#ifndef WCCRESPONSE_H
#define WCCRESPONSE_H

#include "wccapi_export.h"
#include <QString>
#include <QNetworkReply>

namespace WccNameSpace {
namespace Internal {

namespace Error {
enum Code {
    No,
    NoProject,
    Zipping,
    FileSave,
    FileOpen,
    Network
};
}

class WCCAPI_EXPORT WccResponse : public QObject
{
    Q_OBJECT

public:
    explicit WccResponse(QObject *parent);
    WccResponse(QObject *parent, int id, QString msg, Error::Code error = Error::No);
    void setMessage(const QString &reply);
    void setMessage(QNetworkReply *reply);
    QString message() const;

    int m_requestId;
    Error::Code m_errorCode;
    int m_code;

private:
    QString m_message;
};

}
}
#endif // WCCRESPONSE_H
